package com.local.es.pojo;

public class GoodsSearchParam {
    private String keyword;
    private Integer page;
    private Integer limit;
    private String sort;
    private String order;
    private Integer minPrice;
    private Integer maxPrice;

    public GoodsSearchParam(){}

    public GoodsSearchParam(String keyword, Integer page, Integer limit, String sort, String order, Integer minPrice, Integer maxPrice) {
        this.keyword = keyword;
        this.page = page;
        this.limit = limit;
        this.sort = sort;
        this.order = order;
        this.minPrice = minPrice;
        this.maxPrice = maxPrice;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }

    @Override
    public String toString() {
        return "GoodsSearchParam{" +
                "keyword='" + keyword + '\'' +
                ", page=" + page +
                ", limit=" + limit +
                ", sort='" + sort + '\'' +
                ", order='" + order + '\'' +
                ", minPrice=" + minPrice +
                ", maxPrice=" + maxPrice +
                '}';
    }
}
